import request from '@/utils/request'

export const carMon=((data)=>{
    return request({url:'/parking/card/list',params:data})
})
export const addCar=((data)=>{
    return request({url:'/parking/card',method:'post',data})
})
//月卡续费
export function rechargeApi(data){
 return request({url:'/parking/card/recharge',method:'post',data})
}
//获取月卡详情
export function cardDetailApi(id){
    return request({url:'/parking/card/'+id})
}
//编辑月卡
export function editCardApi(data){
    return request({url:'/parking/card/edit',method:'put',data})
}
//获取编辑月卡详情
export function editDetailApi(id){
    return request({url:'/parking/card/detail/'+id})
}
//删除月卡
export function delCardApi(id){
    return request({url:'/parking/card/'+id,method:'delete'})
}
export function delCardListAPI(idList) {
    return request({
      url: `/parking/card/${idList.join(',')}`,
      method: 'DELETE'
    })
  }